Skip to content

Add fallback for _CCCL_BUILTIN_EXPECT#8043

Merged
davebayer merged 1 commit intoNVIDIA:mainfrom
davebayer:builtin_expect_fallback
Mar 16, 2026
Merged

Add fallback for _CCCL_BUILTIN_EXPECT#8043
davebayer merged 1 commit intoNVIDIA:mainfrom
davebayer:builtin_expect_fallback

Conversation

@davebayer
Copy link
Contributor

Partially fixes nvbug 5983800

@davebayer davebayer self-assigned this Mar 16, 2026
@davebayer davebayer requested a review from a team as a code owner March 16, 2026 09:58
@davebayer davebayer added the nvbug Has an associated internal NVIDIA NVBug. label Mar 16, 2026
@davebayer davebayer requested a review from wmaxey March 16, 2026 09:58
@davebayer davebayer added this to CCCL Mar 16, 2026
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 16, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Mar 16, 2026
@davebayer davebayer enabled auto-merge (squash) March 16, 2026 11:41
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 4h 22m: Pass: 100%/99 | Total: 3d 06h | Max: 4h 22m | Hits: 78%/256958

See results here.

@davebayer davebayer merged commit 5c44b15 into NVIDIA:main Mar 16, 2026
116 of 118 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 16, 2026
@github-actions
Copy link
Contributor

Successfully created backport PR for branch/3.3.x:

#endif // _CCCL_CHECK_BUILTIN(builtin_expect)
# define _CCCL_BUILTIN_EXPECT(_EXPR, _VAL) __builtin_expect(_EXPR, _VAL)
#else // ^^^ has __builtin_expect ^^^ / vvv no __builtin_expect vvv
# define _CCCL_BUILTIN_EXPECT(_EXPR, _VAL) (_EXPR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__builtin_expect must not have side effect. Why are we enable the expression?

@davebayer davebayer deleted the builtin_expect_fallback branch March 16, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport branch/3.3.x nvbug Has an associated internal NVIDIA NVBug.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants